import request from '@/utils/request'
import {download} from '@/utils/request'
import {getNowDate} from '@/utils/tools.js'

// 活动效果
export function getActivityBrowseInfo(activeId) {
  return request({
    url: `/system/acddActivityBrowse/getActivityBrowseInfo/${activeId}`,
    method: 'get'
  })
}

// 导出
export function exportData(params, filename) {
  return download('/system/acddActivityBrowse/exportActivityBrowse', params, `${filename}${getNowDate()}.xlsx`)
}


// 图表
export function echartsData(activeId) {
  return request({
    url: `system/acddActivityBrowse/getVerticalView/${activeId}`,
    method: 'get'
  })
}

// 活动用户列表
export function getUserList(data) {
  return request({
    url: `/system/acddActivityBrowse/getActivityUser`,
    method: 'post',
    data
  })
}
